package com.n.Internet.Case;

import java.io.IOException;

/**
 * @author Mc.Chai
 * @program: Java基础
 * @create 2021-11-28-10:09 10:09
 */
public class TestLoad {
    public static void main(String[] args) throws IOException {
       /*PrintWriter printWriter = new PrintWriter(new OutputStreamWriter(new FileOutputStream("src\\Server file\\information.properties", true), "UTF-8"));
        BufferedReader response= new BufferedReader(new InputStreamReader(new FileInputStream("src\\Server file\\information.properties"), "UTF-8"));
        Properties properties=new Properties();
        properties.load(response);
        for (Map.Entry<Object,Object> str:
             properties.entrySet()) {
            System.out.println(str.getValue().toString());
            System.out.println(str.getValue().toString().indexOf("pwd")+4);
            int  s=str.getValue().toString().indexOf("pwd")+4;
            int s2=str.getValue().toString().indexOf("age")-1;
            //str.getValue().toString().indexOf("pwd");
            System.out.println(str.getValue().toString().substring(s,s2));

        }*/
        String s="1001:123123";
        System.out.println(s.substring(s.indexOf(":")+1));

    }
}
